package work.month06.day08;
/**
 * @date 2020/06/08
 * @author 王光浩
 * @introduction 对自己写的 NodeList 进行测试
 */
public class NodeListTest {

	public static void main(String[] args) {
		NodeList<Integer> list = new NodeList<Integer>();
		list.add(1);
		list.add(2);
		list.add(2, 3);
		list.clear();
		list.add(1);
		list.add(2);
		list.add(2, 4);
		System.out.println(list.get(2));
		list.remove(Integer.valueOf(4));
		System.out.println(list);
		System.out.println(list.isEmpty());
		System.out.println(list.size());
	}
	
}
